package com.songlanyun.modules.userbank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.userbank.entity.UserBank;
import com.songlanyun.modules.userbank.model.dto.UserBankDTO;

import java.util.List;
import java.util.Map;

/**
 * 会员的收货地址表
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-11 14:49:27
 */
public interface UserBankService extends IBaseService<Long,UserBank> {

    UserBank add(Long userId, UserBankDTO bank);
    UserBank update(Long userId,UserBankDTO bank);
    void remove(Long userId,Long id);
    UserBank getByUserIdAndId(Long userId,Long id);
    UserBank getDefaultByUserId(Long userId);
    UserBank setDefault(Long userId,Long id);
    List<UserBank> mybankList(Long userId);
}

